﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;

namespace daGarbage
{
    public partial class daTestForm : Form
    {
        private static Regex test = new Regex("auth", RegexOptions.IgnoreCase);

        public daTestForm()
        {
            InitializeComponent();
        }

        private void testBtn_Click(object sender, EventArgs e)
        {
            MatchCollection tags = test.Matches(testBox.Text);
            foreach (Match tag in tags)
            {
                if (tag.Captures.Count > 0)
                    MessageBox.Show(string.Format("{0}", tag.Captures[0].Value));
            }
        }
    }
}
